package com.cmas.platform.domain;

import lombok.Data;
import com.aidex.common.core.domain.BasePlusEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import com.aidex.common.annotation.Excel;

/**
 * 用户点赞表对象 user_like
 * @author su
 * @email 1218819874@qq.com
 * @date 2023-05-03
 */
@Data
public class UserLike extends BasePlusEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    @Excel(name = "用户ID")
    @LogField
    @FieldRemark(name = "用户ID",field = "userId")
    private String userId;

    /** 项目ID */
    @Excel(name = "项目ID")
    @LogField
    @FieldRemark(name = "项目ID",field = "itemId")
    private String itemId;

    /** 类型 */
    @Excel(name = "类型")
    @LogField
    @FieldRemark(name = "类型",field = "type")
    private String type;

    /** 是否点赞 */
    @Excel(name = "是否点赞")
    @LogField
    @FieldRemark(name = "是否点赞",field = "isLike")
    private String isLike;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("postId", getItemId())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
